﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xc.DataAccess.Core.Extensions
{
    public static class QueueExtension
    {
        /// <summary>
        /// 批量入队
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="ts"></param>
        /// <param name="datas"></param>
        public static void Enqueue<T>(this Queue<T> ts,T[] datas)
        {
            foreach (var item in datas)
            {
                ts.Enqueue(item);
            }
        }
    }
}
